<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<title>{$school['title']}</title>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width initial-scale=1.0 maximum-scale=1.0 user-scalable=yes" />
<link type="text/css" rel="stylesheet" href="{OSSURL}public/mobile/css/mMessageList.css?v=4.80219" />
<link type="text/css" rel="stylesheet" href="{OSSURL}public/mobile/css/greenStyle.css?v=4.80120" />
<script type="text/javascript" src="{MODULE_URL}public/mobile/js/jquery-1.11.3.min.js?v=4.8"></script>
</head>
<body>
<div class="all">
<div id="BlackBg" class="BlackBg"></div>
<div id="titlebar" class="header mainColor">
	<div class="l"><a class="backOff" style="background:url({OSSURL}public/mobile/img/ic_arrow_left_48px_white.svg) no-repeat;background-size: 55% 55%;background-position: 50%;" href="javascript:history.go(-1);"></a></div>
	<div class="m">
	<span>家长留言列表</span>
	</div>
		<div class="r">
			<a href="#my-menu"></a>
		</div>
	</div>
<div id="titlebar_bg" class="_header"></div>

		
		
		<!-- 我的消息 start -->
		
		<div id= "myMessage"class="tab">
			{loop $leave $item}
			    {if $item['openid'] == $openid}
				{else}
					<ul>
						<a href="{php echo $this->createMobileUrl('tjiaoliu', array('schoolid' => $schoolid, 'id' => $item['id'], 'leaveid' => $item['leaveid']), true)}">
							<li class="messageItem">
							  <div class="avatar">
								  <img class="l" src="{$item['avatar']}" alt="头像">
								  {if $item['status'] == 0}
								  <div class="unread l"></div>
								  {else}
								  <div class="l"></div>
								  {/if}
							  </div>
							  <input id="leaveid" type="hidden" value="{$item['id']}" />
							  <div class="msgBody">
								 <div class="msgHeader">
								 <div class="msgTitle">与|{$item['s_name']}|{if $item['mom'] == $item['openid']}母亲{else if $item['dad'] == $item['openid']}父亲{else if $item['own'] == $item['openid']}学生本人{/if}的对话</div>
							  </div>
								 <div class="msgContent">{$item['conet']}</div>
								 <div class="msgSender l">{$category[$item['bj_id']]['sname']}</div>
								 <div class="msgTime l">{php echo (date('Y-m-d H:m:s',$item['createtime']))} </div>
							  </div>
						   </li>
						</a>
					</ul>
				{/if}
			{/loop}	
		</div>
		
		<!-- 我的消息 end -->
				
		<div style="display:none;" id="oWindow" class="mainColor PromptBox"></div>
	</div>
	
</body>
{php include $this->template('newfooter');}
<!-- Json处理工具 -->
</html>